package com.tongzhan.entity.qiaotai;/**
 * Create By htmic on 2020/7/29
 */

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tongzhan.annotation.ColumnDoc;
import com.tongzhan.annotation.PrimaryKey;
import com.tongzhan.annotation.TableDoc;
import com.tongzhan.base.BaseModel;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 组织建设-侨胞之家
 *
 * @author htmic
 * @date 2020/7/29
 */
@TableDoc(table = "t_overseas_home",desc = "侨胞之家")
@Data
@Document(collection = "t_overseas_home")
public class OverseasHome extends BaseModel {

    @ColumnDoc("主键id")
    @PrimaryKey
    private String id;

    @ColumnDoc("侨胞之家名称")
    private String name;//侨胞之家名称

    @ColumnDoc("成立时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date time;//成立时间

    @ColumnDoc("地点")
    private String homeAddress;//地点

    @ColumnDoc("简介")
    private String introduction;//简介

    @ColumnDoc("图片地址")
    private String homePicture;//图片地址(如果是多个，以,隔开)

    @ColumnDoc("人员数量")
    private Integer peopleCount;//人员数量

    @ColumnDoc("上报人id")
    private String addUserId;//上报人id

    @ColumnDoc("上报人名称")
    private String addUserName;//上报人名称

    @ColumnDoc("添加时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date addTime;//添加时间

    @ColumnDoc("是否删除")
    private Integer is_del;//是否删除

    @ColumnDoc("街道code")
    private String streetCode;

    @ColumnDoc("村社区")
    private String villageCode;//村社区

}
